package xyz.eden.cloud.track.tus.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Data
@Configuration
public class TusProperties {

    @Value(value = "${tus.server.data.directory}")
    private String directory;
    @Value(value = "${adapter.upload.file.min:0}")
    private Integer min;
    @Value(value = "#{${adapter.upload.file.max}?:1024 * 1024 *1}")
    private Integer max;
    @Value(value = "${server.servlet.context-path}")
    private String servletContextPath;
    @Value(value = "${tus.server.data.upload-uri}")
    private String uploadUri;
}
